package com.jsls.netspri.entity;

import java.io.Serializable;

import org.springframework.stereotype.Component;
@Component
public class Page implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	private Integer currentPage=1;
	private Integer pageSize =6;
	private Integer totalPage=1;
	private Integer user_id;
	
	
	
	
	public Integer getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
	
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}
	
	
	
	public Integer getpageBegin(){
		return (currentPage-1)*pageSize +1;
	}
	
	public Integer getpageEnd(){
		return currentPage*pageSize;
	}
	
	
	
	
}
